mainloop: Ensure we reset running to True when rerun
authorColin Walters <walters@verbum.org>
Sun, 29 Jan 2012 18:29:31 +0000 (13:29 -0500)
committerColin Walters <walters@verbum.org>
Sun, 29 Jan 2012 18:29:31 +0000 (13:29 -0500)
Otherwise we pretty much exit immediately...

src/ostbuild/pyostbuild/mainloop.py

index cc72fb6a527f0f583b166e1bbc55ba4cf8b52f37..d56010b381a629b8342458968e09f6732c597c49 100644 (file)
@@ -85,5 +85,6 @@ class Mainloop(object):
                 self._timeouts[i] = (remaining_ms, callback)
 
     def run(self):
+        self._running = True
         while self._running:
             self.run_once()